package com.plug.util;

/**
 * Created by slaye on 2016/12/21.
 */
public class StringUtils {
    public static boolean isNull(String string){
        if(string == null || string.equals("")) {
            return true;
        } else {
            return false;
        }
    }
    public static boolean isNull(Object object){
        if(object == null ) {
            return true;
        } else {
            return false;
        }
    }

    public static String convertString(Object object) {
        if(object == null){
            return " ";
        } else {
            return object.toString();
        }
    }
}
